<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="s" uri="/struts-tags" %>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme()+"://"+request.getServerName()
								+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE HTML>
<html>
 <head>
  <title>建行运维保障系统</title>
   <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
   <link href="assets/css/dpl-min.css" rel="stylesheet" type="text/css" />
  <link href="assets/css/bui-min.css" rel="stylesheet" type="text/css" />
   <link href="assets/css/main-min.css" rel="stylesheet" type="text/css" />
   <style>
   		body{
   		 
   		}
   		.header{
   			height:60px;
   			background:url("assets/img/logo.png") no-repeat;
   			background-size:200px 30px;
   			background-position:80px 15px;
   			background-color:#F5F5F5;
   			
   		}
   		.dl-log{
   			color:#111;
   		}
   		.dl-log-quit{
   			color:#111;
   		}
   		.dl-title{
   		}
   		.dl-title-text{
   			margin-left:600px;
   			font-size:30px;
   			color:#111;
   			letter-spacing:10px;
   			line-height:60px;
   		}
   		.content{
   		}
   		.dl-main-nav{
   		}
   		.nav-list{
   			background-color:#13B2D5;
   			color:#ccc;
   		}
   		.bui-menu-item-selected{
   			background-color:#13B2D5:
   		}
   		.tab-item-title{
   			margin-left:20px;
   			letter-spacing:3px;
   		}
   </style>
 </head>
 <body>
  <div class="header" >
    
      <div class="dl-title">
          <span class="dl-title-text" ></span>
        </a>
      </div>

    <div class="dl-log">欢迎您&nbsp;<span class="dl-log-user">
    	${userInfo.groupInfo}&nbsp;
    	${userInfo.name}
    </span><a href="<%=basePath %>${empty userInfo  ? 'login':'logout'}" title="回到登录页" class="dl-log-quit">[ ${empty  userInfo ? '请登录':'注销'}]</a>
    </div>
  </div>
  
   <div class="content">
    <div class="dl-main-nav">
      <div class="dl-inform"><div class="dl-inform-title">贴心小秘书<s class="dl-inform-icon dl-up"></s></div></div>
      <ul id="J_Nav"  class="nav-list ks-clear">
        <li class="nav-item dl-selected"><div class="nav-item-inner nav-home">运维系统</div></li>
      </ul>
    </div>
    <ul id="J_NavContent" class="dl-tab-conten">

    </ul>
   </div>
  <script type="text/javascript" src="assets/js/jquery-1.8.1.min.js"></script>
  <script type="text/javascript" src="./assets/js/bui.js"></script>
  <script type="text/javascript" src="./assets/js/config.js"></script>

  <script>
    BUI.use('common/main',function(){
      var config = [{
          id:'menu', 
          homePage : 'homePage',
          menu:[{
              text:' 工作空间 ',
              items:[
            	{id:'homePage',text:' 欢迎  ',href:'main/homePage.jsp' ,closeable : false}
            	<s:if test="#session.userInfo.baseGroupType != 3 && #session.userInfo.baseGroupType != 1"> 
               		 ,{id:'transQuery',text:' 事务处理  ',href:'main/transQuery.jsp'},
                	{id:'demandReport',text:'新事务申报  ',href:'<%= basePath %>transaction/initAdd'}
                </s:if> 
               ]
            },
            /* 行长查看 */
            <s:if test="#session.userInfo.baseGroupType == 3"> 
	            {
	              text:'统计信息',
	              items:[
	                {id:'transHistory',text:'事务历史  ',href:'main/transHistory.jsp'}
	              ]
	            },
            </s:if> 
            {
              text:'系统公告 ',
              items:[
				{id:'notice',text:'查看公告 ',href:'<%= basePath %>anno/show'}  
				<s:if test="#session.userInfo.noticeOfficer"> 
					,{id:'addNotice',text:'发布公告 ',href:'<%= basePath %>anno/showAdd'}
				</s:if> 
				
              ]
            },/* 管理员操作 */
            <s:if test="#session.userInfo.baseGroupType == 1"> 
              {
                text:'系统设置  ',
                items:[
                  {id:'servicesSetup',text:'事务设置 ',href:'<%= basePath %>transdetail/listTransDetail'}
                ]
              },{
                text:'管理员操作   ',
                items:[
                  {id:'userList',text:'用户管理 ',href:'<%= basePath %>user/show'},
                  {id:'roleList',text:'角色管理 ',href:'<%= basePath %>group/show'},
                  {id:'userRightList',text:'用户组管理  ',href:'<%= basePath %>userShip/show'},
                ]
              },{
                  text:'流程管理   ',
                  items:[
                    {id:'procedureList',text:'流程部署 ',href:'<%= basePath %>workflow/listDeploy'},
                  	{id:'procedureDefine',text:'流程定义',href:'<%= basePath %>workflow/listPorcessDefination'}
                  ]
              },
              </s:if> 
               {
                  text:'个人账户   ',
                  items:[
                    {id:'password',text:'密码修改  ',href:'main/password.jsp'}
                  ]
                }]
          }];
      new PageUtil.MainPage({
        modulesConfig : config
      });
    });
  </script>
 </body>
</html>
